/*    */
package com.liang.nansheng.common.enums;

/*    */
/*    */ public enum RpcExceptionEnum
        /*    */ {
    /* 11 */   NS_BBS("com.liang.bbs", "南生论坛系统"),
    /*    */
    /* 15 */   NS_MANAGE_AUTH("com.liang.manage.auth", "权限模块");
    /*    */
    /*    */   private final String packageName;
    /*    */   private final String description;

    /*    */
    /*    */
    private RpcExceptionEnum(String packageName, String description)
    /*    */ {
        /* 27 */
        this.packageName = packageName;
        /* 28 */
        this.description = description;
        /*    */
    }

    /*    */
    /*    */
    public static String getDescription(String message) {
        /* 32 */
        if (message != null) {
            /* 33 */
            RpcExceptionEnum[] values = values();
            /* 34 */
            for (RpcExceptionEnum value : values) {
                /* 35 */
                if (message.contains(value.packageName)) {
                    /* 36 */
                    return value.description;
                    /*    */
                }
                /*    */
            }
            /*    */
        }
        /* 40 */
        return null;
        /*    */
    }
    /*    */
}

/* Location:           C:\maven\maven3.5\maven3.5\repositor\io\github\maliangnansheng\nansheng-common\3.3.4\nansheng-common-3.3.4.jar
 * Qualified Name:     com.liang.nansheng.common.enums.RpcExceptionEnum
 * JD-Core Version:    0.6.2
 */